import re
pattern = r"\d+"
str = "我的电话号码10086,nide 10010"

resp = re.search(pattern,str)
print(resp.group())